<template>
    <div v-html="html"></div>
</template>

<script>
  import {  goConfirmPay } from "@/api/purchaseOrder/purchase.js"
  export default {
    data(){
      return{
        html:''
      }
    },
    methods:{
      fetchVideoPay(){
        let param={
            order_no: this.$route.query.order_no,
            payment_id:this.$route.query.payment_id
        };
        goConfirmPay(param).then( res => {
          this.html = res.data;
          this.$nextTick(() => {
            document.forms[0].submit()
          })
        })
      }
    },
    mounted(){
      this.fetchVideoPay()
    }
  }
</script>

